

var jwt = require('jsonwebtoken')

function parseToken(token){

  let data =  jwt.verify(token,"userName",(err,success)=>{
      if(!err){
        return success
      }else{
        return {success:0,msg:"TOKEN过期"}
      }
        
     })
    return data
}

module.exports = parseToken